import BaseCommand from "@/core/Frame/BaseClass/BaseCommand"

class RefreshCommand extends BaseCommand {
  viewer: any
  globe: any

  constructor(params: any) {
    super()
    this.viewer = params.viewer
    this.globe = this.viewer.getGlobe()
  }

  execute(option: any) {
    option.checked = !option.checked
    this.globe.refresh(true, false)
  }

  isEnable(option: any) {
    return true
  }
}

export default RefreshCommand